package com.growthsee.rider.enumeration;

/**
 * 是否
 * Created by admin on 2021/5/17.
 */
public enum RegisterEnum {
    NOREGISTER(0, "未注册"),
    REGISTERED(1, "已近注册");

    private final int value;
    private final String name;

    private RegisterEnum(int v, String desc) {
        this.value = v;
        this.name = desc;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static RegisterEnum get(int strValue) {
        for (RegisterEnum e : values()) {
            if (e.getValue() == strValue) {
                return e;
            }
        }
        return null;
    }
}
